NGINX_URL=10.251.147.144:8080
apt-get update
apt-get install -y curl
#wget -P /usr/local/bin http://${NGINX_URL}/jenkins/docker-compose
#install compose
#curl --silent --location  -O /usr/local/bin http://${NGINX_URL}/jenkins/docker-compose
#&& chmod u+x /usr/local/bin/docker-compose

#mkdir /usr/local/bin/
#cd /usr/local/bin/
curl -fsSL http://10.251.147.144:8080/jenkins/docker-compose > /usr/local/bin/docker-compose


#curl --silent --location --retry 3 \
#http://${NGINX_URL}/jenkins/docker-compose \
#        && chmod u+x /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

#install GIT
apt-get install -y git
echo "installed git ..."


#JAVA_HOME=/usr/lib/jvm/java-${VERSION}-oracle
#JRE_HOME=${JAVA_HOME}/jre

#apt-get update && apt-get install ca-certificates curl -y && \
#	curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem \
#	--header "Cookie: oraclelicense=accept-securebackup-cookie;" \
#	http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/server-jre-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz \
#	| tar xz -C /tmp && \
#	mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && \
#	apt-get autoclean && apt-get --purge -y autoremove && \
#	rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#
#update-alternatives --install "/usr/bin/java" "java" "${JRE_HOME}/bin/java" 1 && \
#	update-alternatives --install "/usr/bin/javac" "javac" "${JAVA_HOME}/bin/javac" 1 && \
#	update-alternatives --set java "${JRE_HOME}/bin/java" && \
#	update-alternatives --set javac "${JAVA_HOME}/bin/javac"
